package meterMonitor.biz;

import meterMonitor.mapper.ReaderMapper;
import meterMonitor.model.Reader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReaderBiz {

    @Autowired
    ReaderMapper readerMapper;

    public List<Reader> query(Reader reader) {
        return readerMapper.query(reader);
    }

    public void delete(Reader reader) {
        readerMapper.delete(reader);
    }

    public void update(Reader reader) {
        readerMapper.update(reader);
    }

    public void add(Reader reader) {
        readerMapper.add(reader);
    }
}
